@main-color: #3086f2;
@body-bg-color : #515666;

@import "../css/jquery.intro.less";

body {
  background: data-uri("img/bg.png") repeat;
  font-family: Lucida, "Microsoft YaHei", Arial, sans-serif;
  font-size: 12px;
}

#ng-app-lazy {
  background: data-uri("../image/loading.gif") no-repeat center;
  min-width: 1200px;
}

.btn-primary {
  background: @main-color;
}

#b-header {
  background: #fefefe;
  height: 75px;
  overflow: hidden;
  .wrap {
    width: 1000px;
    margin: 0 auto;
    line-height: 70px;
    .brand {
      float: left;
      a {
        color: @main-color;
        font-size: 24px;
        text-decoration: none;
        text-shadow: 0 4px 2px #CCC;
        img {
          height: 28px;
          vertical-align: middle;
          display: inline;
        }
      }
    }
    .tools {
      float: right;
      a {
        color: #666;
        display: inline-block;
        padding: 0 10px;
        font-size: 14px;
      }
    }
  }
}

#b-u-header {
  background: #fefefe;
  height: 40px;
  background: @main-color;
  overflow: hidden;
  .wrap {
    line-height: 40px;
    .brand {
      float: left;
      padding: 0 10px;
      a {
        color: #FFF;
        font-size: 16px;
        text-decoration: none;
        text-shadow: 1px 1px 1px #CCC;
        img {
          height: 16px;
          vertical-align: middle;
          display: inline;
        }
      }
    }
    .tools {
      float: right;
      a {
        color: #FFF;
        display: inline-block;
        padding: 0 20px;
        font-size: 12px;
        text-decoration: none;
        &.cur {
          background: lighten(@main-color, 5%);
        }
      }
    }
  }
}

#b-footer {
  text-align: center;
  background: #515666;
  color: #a8abb3;
  padding: 30px 0;
  line-height: 1.5em;
  a {
    background: #515666;
    color: #a8abb3;
  }
  .copy {
    display: block;
  }
  .contact {

  }
}

#b-login, #b-register {
  background: no-repeat data-uri("img/banner_bg.png") center top;
  background-size: cover;
  .wrap {
    width: 1000px;
    height: 600px;
    margin: 0 auto;
    position: relative;
    background: data-uri("img/banner-1.png") no-repeat left bottom;
    .box {
      width: 300px;
      position: absolute;
      right: 0;
      top: 100px;
      border: 1px solid #CCC;
      background: #FFF;
      box-shadow: 0 0 10px #CCC;
      padding: 20px;
      .head {
        h1 {
          font-size: 16px;
          padding: 0;
          margin: 0;
          line-height: 40px;
          color: @main-color;
        }
        border-bottom: 2px dotted #EEE;
      }
      .body {
        form {
          .form-group {
            padding: 5px 0;
            label {
              color: #999;
            }
          }
        }
      }
    }
  }
}

#b-icons {
  .wrap {
    width: 1000px;
    overflow: hidden;
    margin: 0 auto;
    .icon {
      width: 25%;
      float: left;
      text-align: center;
      padding: 20px 0;
      .img {
        padding: 10px 0;
        img {
          height: 50px;
        }
      }
      .title {
        padding: 10px 0;
        color: #999;
        font-size: 16px;
      }
      .text {
        text-align: left;
        line-height: 2em;
        margin: 0 auto;
        color: #999;
        padding: 0 50px;
      }
    }
  }
}

#b-user {
  padding: 0;
  margin: 0;
  //border: 1px solid #FFF;
  border: none;
  .c-side {
    width: 180px;
    border-right: 1px solid #ccc;
    float: left;
    padding: 10px;
    .title {
      font-size: 14px;
      border-bottom: 1px solid #CCC;
      line-height: 40px;
      padding: 0 10px;
      color: #666;
    }
    .list {
      a {
        display: block;
        line-height: 36px;
        font-size: 12px;
        border-bottom: 1px dashed #CCC;
        text-decoration: none;
        color: @main-color;
        padding-left: 40px;
        &.cur {
          background: #DDD;
        }
      }
    }
  }
  .c-body {
    margin-left: 180px;
  }
}

#b-form {
  padding: 10px;
  background: #FFF;
  .head {
    h1 {
      padding: 0;
      margin: 0;
      font-size: 16px;
      border-bottom: 1px solid #CCC;
      line-height: 40px;
      color: #111;
      font-weight: bold;
    }
  }
  .body {
    padding: 10px;
    form {
      .form-group {
        .input-inline {
          width: auto;
        }
      }
    }
  }
}

#b-doc {
  .c-cat {
    border-right: 1px solid #CCC;
    width: 120px;
    float: left;
    padding: 10px;
    background: #FFF;
    overflow: auto;
    .title {
      line-height: 30px;
      border-bottom: 1px solid #CCC;
      font-size: 12px;
      cursor: pointer;
      .plus {
        float: right;
        display: block;
        height: 30px;
      }
    }
    .list {
      .item {
        display: block;
        color: #666;
        text-decoration: none;
        font-size: 12px;
        padding: 0 5px;
        cursor: pointer;
        border-bottom: 1px dotted #CCC;
        height: 30px;
        line-height: 30px;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: keep-all;
        width: 100%;
        &.cur {
          color: @main-color;
        }
        &:hover {
          .operation {
            display: block;
          }
        }
        .operation {
          float: right;
          display: none;
        }
      }
    }
  }
  .c-list {
    border-right: 1px solid #CCC;
    width: 200px;
    float: left;
    background: #FFF;
    .search {
      width: 120px;
      height: 40px;
      float: left;
      position: relative;
      i {
        position: absolute;
        left: 4px;
        top: 22px;
        color: #CCC;
      }
      input {
        margin-top: 14px;
        height: 26px;
        line-height: 26px;
        font-size: 12px;
        outline: none;
        display: block;
        width: 118px;
        padding: 0 5px 0 18px;
        border: 1px solid #CCC;
        border-color: #FFF;
        outline: none;
        &:focus {
          border-color: #CCC;
          outline: none;
        }
      }
    }
    .title {
      width: 78px;
      height: 40px;
      float: right;
      .plus {
        font-size: 12px;
        display: block;
        height: 26px;
        line-height: 26px;
        text-decoration: none;
        margin-top: 14px;
        text-align: right;
        padding: 0 5px;
      }
    }
    .list {
      clear: both;
      overflow: auto;
      border-top: 1px solid #CCC;
      .item {
        padding: 10px;
        border: 1px solid #EEE;
        border-left: none;
        border-right: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        cursor: default;
        position: relative;
        &.cur {
          background: #EEE;
        }
        .tools {
          position: absolute;
          right: 0;
          top: 0;
          display: none;
          .delete {
            text-decoration: none;
            display: block;
            color: #999;
            line-height: 16px;
            width: 16px;
            text-align: center;
            font-size: 12px;
            &:hover {
              color: red;
            }
          }
        }
        .title {
          padding: 5px 0;
          color: @main-color;
          line-height: 18px;
          font-size: 12px;
          overflow: hidden;
          text-overflow: ellipsis;
          word-break: keep-all;
          border: none;
          float: none;
          height: auto;
          width: auto;
        }
        .attr {
          color: #CCC;
          line-height: 18px;
          font-size: 10px;
          .share {
          }
        }
        .desc {
          color: #888;
          line-height: 20px;
          font-size: 12px;
          height: 3em;
          overflow: hidden;
        }
      }
      .list-loading {
        text-align: center;
        color: #999;
        line-height: 40px;
      }
    }
  }
  .c-body {
    margin-left: 320px;
    .tool-box {
      height: 41px;
      border-bottom: 1px solid #CCC;
      overflow: hidden;
      .cat-box {
        display: block;
        height: 40px;
        float: left;
        select {
          border-radius: 0 !important;
          -webkit-border-radius: 0 !important;
          -moz-border-radius: 0 !important;
          -o-border-radius: 0 !important;
          border: none;
          font-size: 12px;
          option {
            border-radius: 0 !important;
            border: none;
            line-height: 40px;
          }
        }
      }
      .title-box {
        display: block;
        height: 40px;
        float: left;
        input {
          border: none;
          border-bottom: 1px solid #CCC;
          width: 30em;
        }
      }
      .export-box {
        display: block;
        height: 40px;
        float: left;
        line-height: 40px;
        a {
          display: inline-block;
          margin-left: 5px;
          width: 30px;
          padding: 0;
          overflow: hidden;
          line-height: 28px;
          height: 28px;
          font-size: 16px;
        }
      }
    }
    .mdeditor-box {
      overflow: hidden;
      iframe {
        width: 100%;
        border: none;
        z-index: 499;
        margin: 0;
        padding: 0;
      }
    }
    .btn-fullscreen {
      display: block;
      position: absolute;
      right: 0;
      bottom: 0;
      z-index: 500;
    }
  }
}

#status-loading {
  z-index: 1000;
  visibility: hidden;
  background: #FEFEFE;
  width: 35px;
  height: 35px;
  position: absolute;
  top: 0;
  left: 0;
  line-height: 30px;
  text-align: center;
  border-radius: 0 0 5px 5px;
  img {
    width: 20px;
    height: 20px;
  }
}

#status-success, #status-error {
  z-index: 1000;
  visibility: hidden;
  background: #449d44;
  color: #FFF;
  padding: 0 10px;
  position: absolute;
  top: 0;
  left: 0;
  line-height: 35px;
  text-align: center;
  border-radius: 0 0 5px 5px;
}

#status-error {
  background: #d9534f;
}

#body-history {
  .modal-header {
    color: #999;
  }
  .panel-heading {
    color: @main-color;
    a {
      text-decoration: none;
      color: @main-color;
    }
  }
  pre {
    border: none;
    font-size: 12px;
    background: #FFF;
    max-height: 150px;
    overflow: hidden;
    color: #666;
    cursor: pointer;
    moz-user-select: -moz-none;
    -moz-user-select: none;
    -o-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    ins {
      color: #118811;
    }
    del {
      color: #881111;
    }
  }
  .bg-info {
    padding: 10px;
    margin-bottom: 10px;
    color: #666;
  }
}

.categorys-tree {
  ul {
    margin: 0;
    padding: 0 0 0 1em;
    li {
      list-style: none;
      margin: 0;
      padding: 0;
      line-height: 20px;
      font-size: 14px;
      color: #666;
    }
  }
}

// context menu
.context-menu-list {
  position: absolute;
  display: block;
  width: 80px;
  padding: 2px;
  margin: 0;
  font-size: 11px;
  list-style-type: none;
  background: #eee;
  border: 1px solid #ddd;
  -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, .5);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .5);
  .context-menu-item {
    display: block;
    padding: 5px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: #eee;
    text-align: center;
    &.hover {
      cursor: pointer;
      background-color: @main-color;
      color: #FFF;
    }
    &.disabled {
      color: #666;
      &.hover {
        cursor: default;
        background-color: #eee;
      }
    }
  }

  .context-menu-separator {
    padding-bottom: 0;
    border-bottom: 1px solid #ddd;
  }

}